# -*- coding: utf-8 -*-

from vtn_principal import VtnPrincipal
from vtn_programas import VtnProgramas
from vtn_so import VtnSo
from vtn_buscar import VtnBuscar
from vtn_mas_kits import VtnMasKits
from vtn_resumen import VtnResumen
from vtn_filter import VtnFilter
from vtn_error import VtnError

def get_main_window():
    return VtnPrincipal()

def switch_to_programas(parent_window):
    switch_to_window(parent_window, VtnProgramas)
    
def switch_to_so(parent_window):
    switch_to_window(parent_window, VtnSo)
    
def switch_to_buscar(parent_window):
    switch_to_window(parent_window, VtnBuscar)
    
def switch_to_mas_kits(parent_window):
    switch_to_window(parent_window, VtnMasKits)
    
def siwtch_to_resumen(parent_window):
    switch_to_window(parent_window, VtnResumen)

def switch_to_window(parent_window, window_class):
    new_window = window_class(parent_window)
    parent_window.hide()
    
def switch_to_filter_window(parent_window, filter):
    new_window = VtnFilter(parent_window, filter)
    parent_window.hide()

def switch_to_error_window(parent_window, message):
    new_window = VtnError(parent_window, message)